package top.iflyoung.cim.common.req;

import java.sql.Timestamp;
import java.util.Date;

/**
 * @author liguiyang
 * @description
 * @sine 1.8
 * @date 2021/9/512:24
 **/
public class GroupMessageVo extends BaseRequest {
    /**
     * 发送人ID
     */
    private Long senderId;
    /**
     * 分组ID
     */
    private Long groupId;
    /**
     * 消息
     */
    private String message;
    /**
     * 消息内容
     */
    private int messageType;
    /**
     * 创建时间
     */
    private Date createTime = new Date();

    public GroupMessageVo() {
    }

    public GroupMessageVo(Long senderId, Long groupId, String message) {
        setMessage(message);
        setSenderId(senderId);
        setGroupId(groupId);
    }

    public GroupMessageVo(Long senderId, Long groupId, String message, int messageType) {
        this(senderId, groupId, message);
        setMessageType(messageType);
    }

    public Long getSenderId() {
        return senderId;
    }

    public void setSenderId(Long senderId) {
        this.senderId = senderId;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getMessageType() {
        return messageType;
    }

    public void setMessageType(int messageType) {
        this.messageType = messageType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "GroupMessageVo{" +
                "senderId=" + senderId +
                ", groupId=" + groupId +
                ", message='" + message + '\'' +
                ", messageType=" + messageType +
                ", createTime=" + createTime +
                '}';
    }
}
